﻿
@{
    Layout = null;
}

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title></title>
    <link href="images/csstg.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form2">
        <div id="header">
            <div style="float: left; margin-left: 20px;">
                <img src="images/logo.jpg" height="30" />
            </div>
            <ul>
                <li><a target="_blank" href="https://www.zhuozhengsoft.com">卓正网站</a></li>
                <li><a target="_blank" href="https://www.zhuozhengsoft.com/about/about/">关于我们</a></li>
            </ul>
        </div>
        <div id="content">
            <div id="textcontent" style="width: 1000px; height: 900px;">
                <div class="flow4">
                    <span style="width: 100px;"> </span><strong>文档主题：</strong>
                    <span style="color: Red;">测试文件</span>
                </div>
                <script type="text/javascript">
                    function Save() {
                        var myObject = {};
                        myObject.fileName = "test.doc";
                        var params = new URLSearchParams(myObject);
                        var saveUrl = "/TaoHong/SaveDoc";
                        pageofficectrl.SaveFilePage = `${saveUrl}?${params.toString()}`;                       
                        pageofficectrl.WebSave();
                    }
                    
                    function Close() {
                        pageofficectrl.CloseWindow()
                    }
                    function IsFullScreen() {
                        pageofficectrl.FullScreen =
                            !pageofficectrl.FullScreen;
                    }

                    function OnPageOfficeCtrlInit() {
                        pageofficectrl.AddCustomToolButton("保存", "Save", 1);
                        pageofficectrl.AddCustomToolButton("全屏/还原", "IsFullScreen", 4);
                        pageofficectrl.AddCustomToolButton("-", "", 0);
                        pageofficectrl.AddCustomToolButton("关闭", "Close", 21);
                    }

                </script>
                <!--**************   卓正 PageOffice组件 ************************-->
                @Html.Raw(ViewBag.poCtrl)
            </div>
        </div>
        <div id="footer">
            <hr width="1000" />
            <div>
                Copyright (c) 2023 北京卓正志远软件有限公司
            </div>
        </div>
    </form>
</body>
</html>